package com.example.pcl.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@EqualsAndHashCode(callSuper = true)
@Data
@Schema(name = "AppointmentQueryDto", description = "预约查询条件 DTO") // 替换 @ApiModel
public class AppointmentQueryDto extends CommonPage {

    @Schema(description = "用户ID") // 替换 @ApiModelProperty
    private Integer userId;

    @Schema(description = "心理咨询师ID")
    private Integer counselorId;

    @Schema(description = "预约方式")
    private Integer appointmentMethod;

    @Schema(description = "预约状态")
    private Integer status;

    @Schema(description = "预约时间开始", example = "2023-01-01 10:00:00") // 补充示例值
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @Schema(description = "预约时间结束", example = "2023-12-31 20:00:00")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

}